package net.wofly.sale.stock.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 仓库
 * <ul>
 * <li>在创建组织机构或员工时，如果有仓库，则自动创建其对应的仓库</li>
 * </ul>
 *
 * @author lign
 * @version 1.0
 * @updated 22-9月-2017 20:38:15
 */
@Data
@Entity
@Table(name  = "sale_stock_warehouse")
public class Warehouse {
    
    /**
     * 根据类型存储的id不一样。组织机构id或员工id
     */
    @Id
    private String warehouseID;
    /**
     *
     */
    private Long modifyDate;
    /**
     * 状态
     */
    private Integer status = 1;
    /**
     * 仓库名称
     */
    private String warehouseName;
    /**
     * 仓库类型
     */
    private String warehouseType;
    
    public Warehouse() {
        
    }
    
    @Override
    public void finalize() throws Throwable {
        
    }
}